home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Files / MoreIsBetter / MIB-Libraries / Headers / MoreOpenAndSave.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-25  |  3.9 KB  |  98 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        MoreOpenAndSave.h
  3.  
  4.     Contains:    see MoreOpenAndSave.cp
  5.  
  6.     Written by:    Pete Gontier
  7.  
  8.     Copyright:    Copyright (c) 1997-1998 Apple Computer, Inc.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.  
  20.          <4>      9/9/98    PCG     re-work import and export pragmas
  21.          <3>     7/24/98    PCG        coddle linker (C++, CFM-68K)
  22.          <2>     7/11/98    PCG     add header
  23. */
  24.  
  25. #pragma once
  26.  
  27. #include <StandardFile.h>
  28.  
  29. #ifdef __cplusplus
  30.     extern "C" {
  31. #endif
  32.  
  33. #pragma import on // for clients
  34. #pragma export on // for building a library
  35.  
  36.     pascal OSErr
  37. MOASI_CustomPutFile
  38.     (    volatile    ConstStr255Param                        prompt,                // same as CustomPutFile
  39.         volatile    ConstStr255Param                        defaultName,        // same as CustomPutFile
  40.                     StandardFileReply *            volatile,                        // same as CustomPutFile
  41.         volatile    short                                    ditlResID,            // 'DITL' resource ID to APPEND to the existing dialog
  42.         volatile    DlgHookYDProcPtr,                                            // slightly different from CustomGetFile
  43.         volatile    ModalFilterYDUPP,                                            // slightly different
  44.                     void *                        volatile    yourDataPtr        );    // same as CustomPutFile
  45.  
  46.     pascal OSErr
  47. MOASI_CustomGetFile
  48.     (    volatile    FileFilterYDUPP,                                            // same as CustomGetFile
  49.         volatile    short                                    numTypes,            // same as CustomGetFile
  50.         volatile    ConstSFTypeListPtr,                                            // same as CustomGetFile
  51.                     StandardFileReply *            volatile,                        // same as CustomGetFile
  52.         volatile    short                                    ditlResID,            // 'DITL' resource ID to APPEND to the existing dialog
  53.         volatile    DlgHookYDProcPtr,                                            // slightly different from CustomGetFile
  54.         volatile    ModalFilterYDUPP,                                            // slightly different from CustomGetFile
  55.                     void *                        volatile    yourDataPtr        );    // same as CustomGetFile
  56.  
  57.     pascal OSErr
  58. MOASI_StandardGetFile
  59.     (    volatile    FileFilterUPP,                                                // same as StandardGetFile
  60.         volatile    short                                numTypes,                // same as StandardGetFile
  61.         volatile    ConstSFTypeListPtr,                                            // same as StandardGetFile
  62.                     StandardFileReply *        volatile                        );    // same as StandardGetFile
  63.  
  64.     pascal OSErr
  65. MOASI_StandardPutFile
  66.     (    volatile    ConstStr255Param                    prompt,                    // same as StandardPutFile
  67.         volatile    ConstStr255Param                    defaultName,            // same as StandardPutFile
  68.                     StandardFileReply *        volatile                        );    // same as StandardPutFile
  69.  
  70.     pascal OSErr
  71. MOASI_StandardOpenDialog
  72.     (                StandardFileReply *        volatile                        );    // same as StandardOpenDialog
  73.  
  74.     pascal OSErr
  75. MOASI_StandardGetFilePreview
  76.     (    volatile    FileFilterUPP,                                                // same as MOASI_StandardGetFile
  77.         volatile    short                                numTypes,                // same as MOASI_StandardGetFile
  78.         volatile    ConstSFTypeListPtr,                                            // same as MOASI_StandardGetFile
  79.                     StandardFileReply *        volatile                        );    // same as MOASI_StandardGetFile
  80.  
  81.     pascal OSErr
  82. MOASI_CustomGetFilePreview
  83.     (    volatile    FileFilterYDUPP,                                            // same as MOASI_CustomGetFile
  84.         volatile    short                                    numTypes,            // same as MOASI_CustomGetFile
  85.         volatile    ConstSFTypeListPtr,                                            // same as MOASI_CustomGetFile
  86.                     StandardFileReply *            volatile,                        // same as MOASI_CustomGetFile
  87.         volatile    short                                    ditlResID,            // same as MOASI_CustomGetFile
  88.         volatile    DlgHookYDProcPtr,                                            // same as MOASI_CustomGetFile
  89.         volatile    ModalFilterYDUPP,                                            // same as MOASI_CustomGetFile
  90.                     void *                        volatile    yourDataPtr        );    // same as MOASI_CustomGetFile
  91.  
  92. #pragma import reset // for clients
  93. #pragma export reset // for building a library
  94.  
  95. #ifdef __cplusplus
  96.     }
  97. #endif
  98.